// export logic
func (m *default{{.upperStartCamelObject}}Model) RowBuilder() squirrel.SelectBuilder {
	return squirrel.Select({{.lowerStartCamelObject}}Rows).From(m.table)
}

// export logic
func (m *default{{.upperStartCamelObject}}Model) CountBuilder(field string) squirrel.SelectBuilder {
	return squirrel.Select("COUNT("+field+")").From(m.table)
}

// export logic
func (m *default{{.upperStartCamelObject}}Model) SumBuilder(field string) squirrel.SelectBuilder {
	return squirrel.Select("IFNULL(SUM("+field+"),0)").From(m.table)
}

// export logic
func (m *default{{.upperStartCamelObject}}Model) MaxBuilder(field string) squirrel.SelectBuilder {
	return squirrel.Select("MAX("+field+")").From(m.table)
}

// export logic
func (m *default{{.upperStartCamelObject}}Model) MinBuilder(field string) squirrel.SelectBuilder {
	return squirrel.Select("MIN("+field+")").From(m.table)
}